package com.macro.mall.utils;

import lombok.Getter;

@Getter
public enum EnumImportant {

     tourismProject("bms_tourism_project_activities", "重要活动"),
     exhibitions("bms_exhibitions_activities", "展览活动");

     private String code;
     private String name;

     EnumImportant(String code, String name) {
         this.code = code;
         this.name = name;
     }

     public static String getNameByCode(String code) {
    	for (EnumImportant entity : EnumImportant.values()) {
			if (code.equals(entity.getCode())) {
				return entity.getName();
			}
		}
    	return null;
     }

 }

